﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Openapi.Weibo.Model
{
    [Serializable]
    public class AccessToken
    {
        public AccessToken() { }
        /// <summary>
        /// 用于调用access_token，接口获取授权后的access token
        /// </summary>
        public string access_token { get; set; }

        /// <summary>
        /// 用于刷新Access Token 的 Refresh Token
        /// </summary>
        public string refresh_token { get; set; }

        /// <summary>
        /// access_token的生命周期
        /// </summary>
        public string expires_in { get; set; }

        /// <summary>
        /// access_token的生命周期（该参数即将废弃，请使用expires_in）
        /// </summary>
        [Obsolete("该参数即将废弃,尽量使用<expires_in>")]
        public string remind_in { get; set; }

        /// <summary>
        /// 当前授权用户的UID
        /// </summary>
        public string uid { get; set; }

        [NonSerialized]
        public readonly  DateTime AuthorizeTime=DateTime.Now;
    }
}
